package org.example.item.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.example.item.mapper.ItemMapper;
import org.example.item.service.ItemService;
import org.example.model.vo.h5.HomeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class ItemServiceImpl implements ItemService {
    @Autowired
    private ItemMapper itemMapper;

    @Override
    public List<HomeVo> selectAll() {
        return itemMapper.selectAll();
    }

    @Override
    public List<HomeVo> selectByCategoryId(Long categoryId) {
        return itemMapper.selectByCategoryId(categoryId);
    }
}
